package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Note;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 笔记 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-23
 */
@Mapper
public interface NoteMapper extends BaseMapper<Note> {

    List<Note> selectNoteByUserIdAndTopicId(@Param("userId") Integer userId, @Param("topicId") Integer topicId);

    List<Note> selectNotesByUserId(@Param("userId") Integer userId);
}
